﻿using System.Collections.Generic;
using Monkey.Warrenty.EntityModel;

namespace Monkey.Warrenty.Data.Interfaces
{
    public interface IProductDao
    {
        int GetProductCountByFilter(string name, int productGroupId, int manufacturerId);
        List<Product> GetProductsByFilter(string name, int productGroupId, int manufacturerId, int startIndex, int pageSize, string sorting);
        Product AddProduct(Product product);
        void UpdateProduct(Product product);
        void DeleteProduct(int productId);
        int GetMaxId();
        int GetCurrentIdentity();
        Product GetById(int id);
    }
}
